package org.fhm.zdte.server.config;

import org.fhm.substrate.annotation.Configuration;
import org.fhm.substrate.annotation.Value;
import org.fhm.zdte.common.config.AbstractZDTEConfiguration;

/**
 * Initialize the configuration information on the server side.
 *
 * @author 谭波
 * @since 2023/10/14
 */
@Configuration("server.initial")
public class ServerInitialConfiguration extends AbstractZDTEConfiguration {

    @Value("port")
    private int port;

    @Value("online-check-schedule")
    private int onlineCheckSchedule;

    @Value("online-check-timeout")
    private int onlineCheckTimeout;

    @Value("max_user_number")
    private int maxUserNumber;

    public int getPort() {
        return port;
    }

    public int getMaxUserNumber() {
        return maxUserNumber;
    }

    public int getOnlineCheckSchedule() {
        return onlineCheckSchedule;
    }


    public int getOnlineCheckTimeout() {
        return onlineCheckTimeout;
    }
}
